package com.sfh.gd.converter;

import com.sfh.gd.domain.entity.GamePKDO;
import com.sfh.gd.domain.entity.GameRegistrationDO;
import com.sfh.gd.domain.entity.GameTeamDO;
import com.sfh.gd.domain.entity.MemberDO;
import com.sfh.gd.domain.vo.GamePKVO;
import com.sfh.gd.domain.vo.GameRegistrationVO;
import com.sfh.gd.domain.vo.GameTeamVO;
import com.sfh.gd.domain.vo.MemberVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface GameTeamConverter {

    GameTeamConverter INSTANCE = Mappers.getMapper(GameTeamConverter.class);

    @Mapping(target = "id", source = "registrationDId")
    GameRegistrationVO doToVO(GameRegistrationDO data);

    @Mapping(target = "id", source = "teamId")
    GameTeamVO doToVO(GameTeamDO data);

    List<GameTeamVO> doToVO(List<GameTeamDO> data);

    List<GameRegistrationVO> doToRegistrationVO(List<GameRegistrationDO> data);



}
